<template>
  <a-drawer
    title="新增信息"
    :maskClosable="false"
    width=1000
    placement="right"
    :closable="false"
    @close="onClose"
    :visible="show"
    >
     <!-- 表单区域 -->
      <!-- <fm-generate-antd-form 
      :data="jsonData" 
      :remote="remoteFuncs" 
      :value="editData" 
      :remote-option="dynamicData"
      ref="generateForm"
    >
    </fm-generate-antd-form> -->
     <!--表单区域 -->
      <div class="drawer-bootom-button">
       <el-button type="primary"  style="margin: auto;" @click="save" :loading="loading">保存</el-button>
       <el-button type="danger" style="margin-left: 8px; margin: auto;;" @click="reset">重置</el-button>
       <a-popconfirm title="确定放弃编辑？" @confirm="onClose" okText="确定" cancelText="取消">
        <a-button type="danger" style="margin-right: 2px">取消</a-button>
      </a-popconfirm>
    </div>
  </a-drawer>
</template>
<script>
export default {
  name: 'Add',
  props: {
    AddVisiable: {
      require: true,
      default: false
    },
    AddData: {
    }
  },
  data () {
    return {
      // 表单数据区域
  // jsonData: {"list":[{"type":"tabs","icon":"icon-tabs","tabs":[{"label":"基本信息","name":"tab_1","list":[{"type":"grid","icon":"icon-RectangleCopy","columns":[{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"input","icon":"icon-input","options":{"width":"100%","defaultValue":"","required":false,"dataType":"string","pattern":"","placeholder":"系统自动生成","customClass":"","disabled":true,"labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_1587971621842","remoteOption":"option_1587971621842"},"name":"集团商户编号","novalid":{},"key":"1587971621842","model":"id","rules":[{"type":"string","message":"格式不正确"}]}]},{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"input","icon":"icon-input","options":{"width":"100%","defaultValue":"","required":true,"dataType":"string","pattern":"","placeholder":"","customClass":"","disabled":false,"labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_1587971624354","remoteOption":"option_1587971624354"},"name":"集团商户名称","novalid":{},"key":"1587971624354","model":"name","rules":[{"type":"string","message":"格式不正确"},{"required":true,"message":"必须填写"}]}]}],"options":{"gutter":0,"justify":"start","align":"top","customClass":"","hidden":false,"flex":true,"responsive":false,"remoteFunc":"func_1587971617771","remoteOption":"option_1587971617771"},"name":"栅格布局","key":"1587971617771","model":"grid_1587971617771","rules":[]},{"type":"grid","icon":"icon-RectangleCopy","columns":[{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"radio","icon":"icon-radio-active","options":{"inline":false,"defaultValue":"","showLabel":false,"options":[],"required":true,"width":"","remote":true,"remoteType":"option","remoteOption":"option_1587976436792","remoteOptions":[],"props":{"value":"value","label":"label"},"remoteFunc":"func_1587976436792","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"disabled":false},"name":"是否集中收款","novalid":{},"key":"1587976436792","model":"radio_1587976436792","rules":[{"required":true,"message":"必须填写"}]}]},{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"input","icon":"icon-input","options":{"width":"100%","defaultValue":"","required":false,"dataType":"string","pattern":"","placeholder":"","customClass":"","disabled":true,"labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_1587971624354","remoteOption":"option_1587971624354"},"name":"创建机构","novalid":{},"key":"6rqkv0md","model":"affiliation","rules":[{"type":"string","message":"格式不正确"}]}]}],"options":{"gutter":0,"justify":"start","align":"top","customClass":"","hidden":false,"flex":true,"responsive":false,"remoteFunc":"func_1587971617771","remoteOption":"option_1587971617771"},"name":"栅格布局","key":"uapwvxun","model":"grid_uapwvxun","rules":[]},{"type":"grid","icon":"icon-RectangleCopy","columns":[{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"请选择","required":true,"showLabel":false,"width":"","options":[],"remote":true,"remoteType":"option","remoteOption":"option_1587971692389","filterable":false,"remoteOptions":[],"props":{"value":"value","label":"label"},"remoteFunc":"func_1587971692389","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true},"name":"银联地区代码","novalid":{},"key":"1587971692389","model":"select_1587971692389","rules":[{"required":true,"message":"必须填写"}]}]},{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"请选择","required":true,"showLabel":false,"width":"","options":[],"remote":true,"remoteType":"option","remoteOption":"option_1587971695151","filterable":false,"remoteOptions":[],"props":{"value":"value","label":"label"},"remoteFunc":"func_1587971695151","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true},"name":"银联商户组别","novalid":{},"key":"1587971695151","model":"select_1587971695151","rules":[{"required":true,"message":"必须填写"}]}]}],"options":{"gutter":0,"justify":"start","align":"top","customClass":"","hidden":false,"flex":true,"responsive":false,"remoteFunc":"func_1587971617771","remoteOption":"option_1587971617771"},"name":"栅格布局","key":"ctzd2ybs","model":"grid_ctzd2ybs","rules":[]},{"type":"grid","icon":"icon-RectangleCopy","columns":[{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"请选择","required":true,"showLabel":false,"width":"","options":[],"remote":true,"remoteType":"option","remoteOption":"option_1587971699698","filterable":false,"remoteOptions":[],"props":{"value":"value","label":"label"},"remoteFunc":"func_1587971699698","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true},"name":"银联商户类别","key":"1587971699698","model":"select_1587971699698","rules":[{"required":true,"message":"必须填写"}]}]},{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[]}],"options":{"gutter":0,"justify":"start","align":"top","customClass":"","hidden":false,"flex":true,"responsive":false,"remoteFunc":"func_1587971617771","remoteOption":"option_1587971617771"},"name":"栅格布局","key":"jvn1frzr","model":"grid_jvn1frzr","rules":[]}]}],"options":{"type":"border-card","tabPosition":"top","customClass":"","hidden":false,"remoteFunc":"func_1587971573109","remoteOption":"option_1587971573109"},"name":"标签页","key":"1587971573109","model":"tabs_1587971573109","rules":[]},{"type":"tabs","icon":"icon-tabs","tabs":[{"label":"营业执照信息","name":"tab_1","list":[{"type":"grid","icon":"icon-RectangleCopy","columns":[{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"input","icon":"icon-input","options":{"width":"100%","defaultValue":"","required":true,"dataType":"string","pattern":"","placeholder":"","customClass":"","disabled":false,"labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_1587971735190","remoteOption":"option_1587971735190"},"name":"注册号","novalid":{},"key":"1587971735190","model":"input_1587971735190","rules":[{"type":"string","message":"格式不正确"},{"required":true,"message":"必须填写"}]}]},{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"请选择","required":true,"showLabel":false,"width":"","options":[],"remote":true,"remoteType":"option","remoteOption":"option_1587972156974","filterable":false,"remoteOptions":[],"props":{"value":"value","label":"label"},"remoteFunc":"func_1587971695151","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true},"name":"注册类型","novalid":{},"key":"1587972161819","model":"select1587972156974","rules":[{"required":true,"message":"必须填写"}]}]}],"options":{"gutter":0,"justify":"start","align":"top","customClass":"","hidden":false,"flex":true,"responsive":false,"remoteFunc":"func_1587971732123","remoteOption":"option_1587971732123"},"name":"栅格布局","key":"1587971732123","model":"grid_1587971732123","rules":[]},{"type":"grid","icon":"icon-RectangleCopy","columns":[{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"请选择","required":true,"showLabel":false,"width":"","options":[],"remote":true,"remoteType":"option","remoteOption":"option_1587972180850","filterable":false,"remoteOptions":[],"props":{"value":"value","label":"label"},"remoteFunc":"func_1587971695151","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true},"name":"注册资本","novalid":{},"key":"1587972200772","model":"select1587972180850","rules":[{"required":true,"message":"必须填写"}]}]},{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"date","icon":"icon-date","options":{"defaultValue":"","readonly":false,"disabled":false,"editable":false,"clearable":true,"placeholder":"","startPlaceholder":"","endPlaceholder":"","type":"date","format":"YYYY-MM-DD","timestamp":false,"required":true,"width":"","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"remoteFunc":"func_1587972310421","remoteOption":"option_1587972310421"},"name":"生效日期","novalid":{},"key":"1587972310421","model":"date_1587972310421","rules":[{"required":true,"message":"必须填写"}]}]}],"options":{"gutter":0,"justify":"start","align":"top","customClass":"","hidden":false,"flex":true,"responsive":false,"remoteFunc":"func_1587971732123","remoteOption":"option_1587971732123"},"name":"栅格布局","key":"m9axhjw6","model":"grid_m9axhjw6","rules":[]},{"type":"grid","icon":"icon-RectangleCopy","columns":[{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"date","icon":"icon-date","options":{"defaultValue":"","readonly":false,"disabled":false,"editable":false,"clearable":true,"placeholder":"","startPlaceholder":"","endPlaceholder":"","type":"date","format":"YYYY-MM-DD","timestamp":false,"required":true,"width":"","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"remoteFunc":"func_1587972310421","remoteOption":"option_1587972310421"},"name":"失效日期","novalid":{},"key":"1587972336833","model":"date1587972328285","rules":[{"required":true,"message":"必须填写"}]}]},{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"请选择","required":true,"showLabel":false,"width":"","options":[],"remote":true,"remoteType":"option","remoteOption":"option_1587972183306","filterable":false,"remoteOptions":[],"props":{"value":"value","label":"label"},"remoteFunc":"func_1587971695151","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true},"name":"经营范围","novalid":{},"key":"1587972206485","model":"select1587972183306","rules":[{"required":true,"message":"必须填写"}]}]}],"options":{"gutter":0,"justify":"start","align":"top","customClass":"","hidden":false,"flex":true,"responsive":false,"remoteFunc":"func_1587971732123","remoteOption":"option_1587971732123"},"name":"栅格布局","key":"6tspm22p","model":"grid_6tspm22p","rules":[]},{"type":"grid","icon":"icon-RectangleCopy","columns":[{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"请选择","required":true,"showLabel":false,"width":"","options":[],"remote":true,"remoteType":"option","remoteOption":"option_1587972179833","filterable":false,"remoteOptions":[],"props":{"value":"value","label":"label"},"remoteFunc":"func_1587971695151","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true},"name":"注册地址-省","novalid":{},"key":"1587972231085","model":"select1587972179833","rules":[{"required":true,"message":"必须填写"}]}]},{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"请选择","required":true,"showLabel":false,"width":"","options":[],"remote":true,"remoteType":"option","remoteOption":"option_1587972232841","filterable":false,"remoteOptions":[],"props":{"value":"value","label":"label"},"remoteFunc":"func_1587971695151","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true},"name":"注册地址-市","novalid":{},"key":"1587972242647","model":"select1587972232841","rules":[{"required":true,"message":"必须填写"}]}]}],"options":{"gutter":0,"justify":"start","align":"top","customClass":"","hidden":false,"flex":true,"responsive":false,"remoteFunc":"func_1587971732123","remoteOption":"option_1587971732123"},"name":"栅格布局","key":"vkqn4lk6","model":"grid_vkqn4lk6","rules":[]},{"type":"grid","icon":"icon-RectangleCopy","columns":[{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"select","icon":"icon-select","options":{"defaultValue":"","multiple":false,"disabled":false,"clearable":false,"placeholder":"请选择","required":true,"showLabel":false,"width":"","options":[],"remote":true,"remoteType":"option","remoteOption":"option_1587972234182","filterable":false,"remoteOptions":[],"props":{"value":"value","label":"label"},"remoteFunc":"func_1587971695151","customClass":"","labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true},"name":"注册地址-区","novalid":{},"key":"1587972237699","model":"select1587972234182","rules":[{"required":true,"message":"必须填写"}]}]},{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[]}],"options":{"gutter":0,"justify":"start","align":"top","customClass":"","hidden":false,"flex":true,"responsive":false,"remoteFunc":"func_1587971732123","remoteOption":"option_1587971732123"},"name":"栅格布局","key":"g9gyit02","model":"grid_g9gyit02","rules":[]},{"type":"input","icon":"icon-input","options":{"width":"100%","defaultValue":"","required":true,"dataType":"string","pattern":"","placeholder":"","customClass":"Float:left ","disabled":false,"labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_1587971825841","remoteOption":"option_1587971825841"},"name":"详细地址","key":"1587971825841","model":"input_1587971825841","rules":[{"type":"string","message":"格式不正确"},{"required":true,"message":"必须填写"}]}]}],"options":{"type":"border-card","tabPosition":"top","customClass":"","hidden":false,"remoteFunc":"func_1587971575001","remoteOption":"option_1587971575001"},"name":"标签页","key":"1587971575001","model":"tabs_1587971575001","rules":[]},{"type":"tabs","icon":"icon-tabs","tabs":[{"label":"集团法人信息","name":"tab_1","list":[{"type":"grid","icon":"icon-RectangleCopy","columns":[{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"input","icon":"icon-input","options":{"width":"100%","defaultValue":"","required":true,"dataType":"string","pattern":"","placeholder":"","customClass":"","disabled":false,"labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_1587971850480","remoteOption":"option_1587971850480"},"name":"法人姓名","novalid":{},"key":"1587971850480","model":"input_1587971850480","rules":[{"type":"string","message":"格式不正确"},{"required":true,"message":"必须填写"}]}]},{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"input","icon":"icon-input","options":{"width":"100%","defaultValue":"","required":true,"dataType":"string","pattern":"","placeholder":"","customClass":"","disabled":false,"labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_1587971850480","remoteOption":"option_1587971850480"},"name":"法人身份证","novalid":{},"key":"1587971856857","model":"input1587971853584","rules":[{"type":"string","message":"格式不正确"},{"required":true,"message":"必须填写"}]}]}],"options":{"gutter":0,"justify":"start","align":"top","customClass":"","hidden":false,"flex":true,"responsive":false,"remoteFunc":"func_1587971842678","remoteOption":"option_1587971842678"},"name":"栅格布局","key":"1587971842678","model":"grid_1587971842678","rules":[]},{"type":"grid","icon":"icon-RectangleCopy","columns":[{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"input","icon":"icon-input","options":{"width":"100%","defaultValue":"","required":true,"dataType":"string","pattern":"","placeholder":"","customClass":"","disabled":false,"labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_1587971850480","remoteOption":"option_1587971850480"},"name":"法人联系电话","novalid":{},"key":"gentdscb","model":"input_gentdscb","rules":[{"type":"string","message":"格式不正确"},{"required":true,"message":"必须填写"}]}]},{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[]}],"options":{"gutter":0,"justify":"start","align":"top","customClass":"","hidden":false,"flex":true,"responsive":false,"remoteFunc":"func_1587971842678","remoteOption":"option_1587971842678"},"name":"栅格布局","key":"2fjww1qw","model":"grid_2fjww1qw","rules":[]}]}],"options":{"type":"border-card","tabPosition":"top","customClass":"","hidden":false,"remoteFunc":"func_1587971576879","remoteOption":"option_1587971576879"},"name":"标签页","key":"1587971576879","model":"tabs_1587971576879","rules":[]},{"type":"tabs","icon":"icon-tabs","tabs":[{"label":"集团联系人信息","name":"tab_1","list":[{"type":"grid","icon":"icon-RectangleCopy","columns":[{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"input","icon":"icon-input","options":{"width":"100%","defaultValue":"","required":false,"dataType":"string","pattern":"","placeholder":"","customClass":"","disabled":false,"labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_1587971850480","remoteOption":"option_1587971850480"},"name":"联系人姓名","novalid":{},"key":"t9rekdg9","model":"input_t9rekdg9","rules":[{"type":"string","message":"格式不正确"}]}]},{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"input","icon":"icon-input","options":{"width":"100%","defaultValue":"","required":false,"dataType":"string","pattern":"","placeholder":"","customClass":"","disabled":false,"labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_1587971850480","remoteOption":"option_1587971850480"},"name":"联系人电话","novalid":{},"key":"hznx2dzr","model":"input_hznx2dzr","rules":[{"type":"string","message":"格式不正确"}]}]}],"options":{"gutter":0,"justify":"start","align":"top","customClass":"","hidden":false,"flex":true,"responsive":false,"remoteFunc":"func_1587971842678","remoteOption":"option_1587971842678"},"name":"栅格布局","key":"zbs658bn","model":"grid_zbs658bn","rules":[]},{"type":"grid","icon":"icon-RectangleCopy","columns":[{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[{"type":"input","icon":"icon-input","options":{"width":"100%","defaultValue":"","required":false,"dataType":"string","pattern":"","placeholder":"","customClass":"","disabled":false,"labelWidth":100,"isLabelWidth":false,"hidden":false,"dataBind":true,"showPassword":false,"remoteFunc":"func_1587971850480","remoteOption":"option_1587971850480"},"name":"联系人邮箱","novalid":{},"key":"svwjigt9","model":"input_svwjigt9","rules":[{"type":"string","message":"格式不正确"}]}]},{"span":12,"xs":12,"sm":12,"md":12,"lg":12,"xl":12,"list":[]}],"options":{"gutter":0,"justify":"start","align":"top","customClass":"","hidden":false,"flex":true,"responsive":false,"remoteFunc":"func_1587971842678","remoteOption":"option_1587971842678"},"name":"栅格布局","key":"k9roqfkm","model":"grid_k9roqfkm","rules":[]}]}],"options":{"type":"border-card","tabPosition":"top","customClass":"","hidden":false,"remoteFunc":"func_1587971576879","remoteOption":"option_1587971576879"},"name":"标签页","key":"i3p6vpob","model":"tabs_i3p6vpob","rules":[]}],"config":{"labelWidth":100,"labelPosition":"right","size":"small","customClass":"","ui":"antd","layout":"horizontal","labelCol":6,"width":"100%"}},
  //     editData: {},
  //     remoteFuncs: {
        
  //     },
  //     dynamicData: {
        
  //         option_1587976436792 : [{label:"是",value:"01"},{label:"否",value:"02"}], // 是否集中收款 option data
    
  //         option_1587971692389 : [], // 银联地区代码 option data
    
  //         option_1587971695151 : [], // 银联商户组别 option data
    
  //         option_1587971699698 : [], // 银联商户类别 option data
    
  //         option_1587972156974 : [], // 注册类型 option data
    
  //         option_1587972180850 : [], // 注册资本 option data
    
  //         option_1587972183306 : [], // 经营范围 option data
    
  //         option_1587972179833 : [], // 注册地址-省 option data
    
  //         option_1587972232841 : [], // 注册地址-市 option data
    
  //         option_1587972234182 : [], // 注册地址-区 option data
    
  //     },
      // 表单数据区域
      SaveData: {},
      loading: false
    }
  },
  computed: {
    show: {
        get: function () {
        if (this.AddVisiable) {
          this.init()
        }
        return this.AddVisiable
      },
      set: function () {
      }
    }
  },
  methods: {
    // 初始化方法自动将Editdata赋值给详情表单默认值
    init () {
      Object.assign(this.editData, this.AddData)
    },
    handleCancleClick () {
      this.$emit('close')
    },
    reset () {
      // 重置表单数据
      this.$refs.generateForm.reset()
    },
    onClose () {
      this.loading = false
      this.$emit('close')
    },
    save () {
      this.$refs.generateForm.getData().then(data => {
        // Data verification succeeded 数据验证成功
        Object.assign(this.SaveData, data)
        // 获取当前列的排序和列的过滤规则
        this.$post('merchant', {
          ...this.SaveData
        }).then((r) => {
          this.loading = false
          this.$emit('success')
        }).catch(() => {
          this.loading = false
           alert('保存失败')
        })
      }).catch(e => {
        // Data verification failed 数据验证失败
      })
    }
  }
}
</script>
